package com.balabala.gym_enum;


public enum ResultEnum {
    GENERALLY_SUCCESS(0,"成功"),
    GENERALLY_FAIL(444,"失败"),
    SMS_CODE_SUCCESS(0,"短信发送成功" ), LOGIN_SUCCESS(0, "登录成功"),
    CAPTCHA_NOT_RIGHT(448,"验证码不正确" ),
    NO_HAVA_TOKEN(1001,"没有携带token" ),
    INVALID_TOKEN(1002,"无效token" ),
     N0_DATA(1003,"没有数据" ),
    PHONE_USED(3001,"手机号已经被使用"),
    EMAIL_USED(3002,"邮箱已经被使用"),
    ADMIN_USED(3003,"用户名已经被使用"),
    PASSWORD_ERROR(3004,"密码错误"),
    NO_ADMIN(3005,"用户名不存在"),
    TWO_PASSWORD_ERROR(3006,"两次输入密码不一致"),
    FALSE_NODATA(3007,"没有该数据"),
    MORE_NUMBER(3008,"预约人数已达上线"),
    NO_PEOP0L(3009,"查无此人");
    private Integer code;
    private String msg;



    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
